package com.yunxin.core.application.dto.team;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.sql.Date;

@Data
public class TeamAddDTO {

    /**
     * 团队名称
     */
    @NotBlank(message = "团队名称不能为空")
    private String teamName;

    /**
     * 开启状态 1.开启 2.关闭
     */
    @NotNull(message = "团队状态不能为空")
    @Min(value = 1, message = "团队状态不能小于1")
    @Max(value = 2, message = "团队状态不能大于2")
    private Integer status;

    @Schema(description = "企业微信id")
    private Long wechatInfoId;

    /**
     * 删除状态 1.正常 2.删除
     */
    @Schema(hidden = true)
    private Integer isDel;

    /**
     * 创建时间
     */
    @Schema(hidden = true)
    private Date createTime;


    /**
     * 创建人
     */
    @Schema(hidden = true)
    private String creator;

    /**
     * 商户id
     */
    @Schema(hidden = true)
    private Long merchantId;


}
